package com.seventh.parkingrent.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.seventh.parkingrent.domain.ParkingSpace;
import com.baomidou.mybatisplus.extension.service.IService;
import com.seventh.parkingrent.domain.RentMessage;

import java.util.List;

/**
 * <p>
 * 车位信息表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2021-08-24
 */
public interface IParkingSpaceService extends IService<ParkingSpace> {

    ParkingSpace findStatus(int parkingSpaceId);

    IPage getParkingSpace(int pageIndex, int pageSize);

    ParkingSpace getParkingSpaceByid(Integer id);

   Boolean addParkingSpace(ParkingSpace parkingSpace);


    Integer updateStatusById(Integer rentMessageId);
    List<RentMessage> nearbyparking(Double x, Double y);
    IPage<ParkingSpace> findAll(int userId,int current);

    Integer changeState(String state,int parkingSpaceId);

    ParkingSpace findParkingSpaceById(int parkingSpaceId);

    Integer delParkingSpace(int parkingSpaceId);

    List<ParkingSpace>  findAllByNo(String ParkingSpace);
}
